import request from '@/utils/request'

// 查询检查整改记录列表
export function listInspectionRecords(query) {
  return request({
    url: '/person/inspectionRecords/list',
    method: 'get',
    params: query
  })
}

// 查询检查整改记录详细
export function getInspectionRecords(id) {
  return request({
    url: '/person/inspectionRecords/' + id,
    method: 'get'
  })
}

// 新增检查整改记录
export function addInspectionRecords(data) {
  return request({
    url: '/person/inspectionRecords',
    method: 'post',
    data: data
  })
}

// 修改检查整改记录
export function updateInspectionRecords(data) {
  return request({
    url: '/person/inspectionRecords',
    method: 'put',
    data: data
  })
}

// 删除检查整改记录
export function delInspectionRecords(id) {
  return request({
    url: '/person/inspectionRecords/' + id,
    method: 'delete'
  })
}

export function examIneInspectionRecords(data) {
  return request({
    url: '/person/inspectionRecords/examine',
    method: 'put',
    data: data
  })
}


